html, body {
    margin: 0;
    font-family: 'Open Sans Condensed', sans-serif;
    min-height: 100%;
}

html{
    position: relative;
    min-height: 100%;
}

body {
    background: url("../images/background.png");
    background-position: center center; /* Background image is centered vertically and horizontally at all times */
    background-attachment: fixed; /* Background image is fixed in the viewport so that it doesn't move when the content's height is greater than the image's height */
    background-repeat: no-repeat;
    background-size: cover; /* This is what makes the background image rescale based on the container's size */
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;
}

body > div {
    margin-top: 65px;
}

#content, #content-block {
    background: rgba(255, 255, 255, 0.9);
    margin: 5px 15% 0px 15%;
    position: relative;
    padding: 5px;
}

#header {
    height: 55px;
    border-bottom: 1px solid black;
    text-align: center;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10;
    background: #2c3e50;
    color: white;
    margin: 0px;
    padding-left: 15%;
    padding-right: 15%;
}

/*MENU START*/
#menu {
    line-height: 100%;
    position: fixed;
    display: table;
    top: 0px;
    padding: 0px;
    margin: 0px;
}

#menu > li {
    display: table-cell;
    list-style: none;
    vertical-align: middle;
    cursor: pointer;
    font-size: 19px;
    height: 55px;
}

#menu li span{
    /*margin-top: 15px;*/
}

#menu li:nth-child(1),
#menu li:nth-child(2),
#menu li:nth-child(3) {
    width: 200px;
}

#menu li:nth-child(4) {
    width: 50px;
}

#menu > li:nth-child(1),
#menu > li:nth-child(4) {
    background: transparent !important;
}

#menu li ul {
    display: none;
    position: absolute;
    background: #2c3e50;
    list-style: none;
    top: 55px;
    padding: 0;
    border: 1px solid black;
    border-top: none;
    box-shadow: inset 0 7px 9px -7px rgba(0,0,0,0.4);
    -moz-box-shadow: inset 0 7px 9px -7px rgba(0,0,0,0.4);
    -webkit-box-shadow: inset 0 7px 9px -7px rgba(0,0,0,0.4);
}

#menu li:hover {
    background: #2c3f58;
    color: #FFFFFF;
}

#menu li:hover ul {
    display: block;
}

#menu li ul li {
    display: block;
    float: none;
    list-style: none;
    text-align: left;
    padding: 10px 0 10px 0;
}

#menu > li:last-child {
    padding-left: 0;
    padding-right: 0;
    position: fixed;
    top: 35px;
    right: 30px;
}

#menu > li:last-child img{
    width: 64px;
    height: 64px;
}

#mobile-menu, .mobile-sub-menu{
    width: 100%;
    font-size: 80px;
}

#mobile-menu{
    margin: 0px;
    position: absolute;
    top: 135px;
    left: 0;
    background: #2c3e50;
    display: none;
    border: 1px solid black;
}

#mobile-menu tr td{
    border-top: 1px solid white;
}

.mobile-sub-menu{
    display: none;
    background: white;
    color: #2c3e50;
}

.mobile-sub-menu tr td{
    padding-left: 30px;
}

/*MENU END*/

#content {
    overflow-y: hidden;
    overflow-x: hidden;
    min-height: 1200px;
    padding: 25px 25px 10px 25px;
}

#footer {   
    height: 200px;
    border-top: 1px solid black;
    text-align: center;
    position: relative;
    bottom: 0;
    left: 15%;
    width: 70%;
    background: #C0C2BD;
    color: black;
    margin: 0px;
    padding: 20px 0px;
    -webkit-box-shadow: inset 0px 13px 7px -4px rgba(0,0,0,0.75);
    -moz-box-shadow: inset 0px 13px 7px -4px rgba(0,0,0,0.75);
    box-shadow: inset 0px 13px 7px -4px rgba(0,0,0,0.75);
}

/*START JQUERY AUTOCOMPLETE*/
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active, 
.ui-autocomplete, .ui-autocomplete:hover, 
.ui-menu-item, .ui-menu-item:hover,
.ui-menu-item a, .ui-menu-item a:hover,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-menu .ui-menu-item a.ui-state-focus,
.ui-menu .ui-menu-item a.ui-state-active,
.ui-menu .ui-menu-item a{ 
    background: #ffffff none no-repeat; 
    padding:0;
    margin:0;
    display:block;
    border:0;
    border-bottom: 1px solid #C0C2BD;
    border-collapse:collapse;
    font-size: 22px;
    font-family: 'Open Sans Condensed', sans-serif;
}

.ui-widget-content .ui-state-focus{
    background: #2c3e50;
    color: white;
    cursor: pointer;
}
.ui-autocomplete li {
    list-style: none;
    padding: 0;
}

.ui-autocomplete {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
}

.ui-autocomplete .item-label {
    margin-left: 5px;
}

.ui-autocomplete .item-desc {
    float: right;
    margin-right: 25px;
    color: lightgray;
}

/*END JQUERY AUTOCOMPLETE*/

.content-box {
    display: inline-block;
    width: 550px;
    margin: 10px 30px 10px 30px;
    background: white;
    font-size: 16px;
/*    -webkit-box-shadow: 4px 4px 5px 0px rgba(50, 50, 50, 0.75);
    -moz-box-shadow:    4px 4px 5px 0px rgba(50, 50, 50, 0.75);
    box-shadow:         4px 4px 5px 0px rgba(50, 50, 50, 0.75);*/
    -webkit-border-radius:  2px;
    -moz-border-radius:     2px;
    border-radius:          2px;
    border: 1px solid lightgrey;
}

.content-box header {
    font-size: 22px;
    padding: 2px 10px 2px 10px;
    background: #2c3e50;
    color: white;
    text-align: left;
}

.content-box article {
    width: 100%;
/*    margin: 0 5px 0 5px;*/
    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.top-hit{
    width: 100%;
    height: 100%;
    background: url("../images/beer-taps-bar.jpg");
    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.content-box article th, .content-box article td {
    padding: 2px 0px 2px 0px;
}

.content-box table {
    width: 100%;
    border-collapse: collapse;
}

.content-box table tr:nth-child(odd) {
   background-color: rgba(0, 0, 0, 0.020);
}

.content-box-icon {
    height: 18px;
    width: 18px;
    margin-right: 3px;
    vertical-align: middle;
    padding-bottom: 4px;
}

.rating-stars-content-box{
    height: 1em;
    width: 1em;
}

#happenings-near-you-wrapper {
    width: 92%;
}

table, table tr {
    text-align: left;
}

table #row-0 td {
    vertical-align: top;
}

#new-bar-grid {
    width: 100%;
}

.responsive-table td {
    vertical-align: top !important;
}

.responsive-table td input, .responsive-table td textarea, .responsive-table td select {
    vertical-align: top !important;
}

.responsive-table th {
    vertical-align: middle !important;
}

.responsive-table th img{
    vertical-align: middle !important;
}

#description {
    height: 16px;
    width: 147px;
}

#button-wrapper {
    padding-top: 4px;
}

#add-row-btn{
    background: url("../images/add.png") no-repeat;
}

#reset-btn, #refresh-btn {
    background: url("../images/reset.png") no-repeat;
}

#run-sql-btn {
    background: url("../images/run-sql.png") no-repeat;
}

.delete-row-btn, #delete-btn{
    background: url("../images/delete.png") no-repeat;
}

.button {
    width: 20px;
    height: 20px;
    border: none;
    outline: 0;
}

.disabled {
    opacity: 0.4;
    cursor: auto !important;
}

#navigation span {
    justify-content: center;
    cursor: pointer;
}

#navigation span:hover {
    text-decoration: underline;
    font-size: 110%;
    color: darkslategray;
}

#logo{
    width: 124px;
    height: 100%;
}

#register-bar-btn, #signUpBtn {
    background: #40C927;
    color: #fff;
}

#register-bar-btn:hover, #signUpBtn:hover {
    background: #40EF27;
}

.square-btn{
    border: 1px solid #000;
    height: 30px;
    width: 80px;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Open Sans Condensed', sans-serif;
}

/*LOGIN DIALOG START*/
#outOfLogInDialog{
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
}

#logInDialog{
    position: fixed;
    top: calc(30% - 100px);
    left: calc(50% - 200px);
    min-height: 200px;
    width: 400px;
    z-index: 1000;
    background: #fff;
    font-family: 'Open Sans Condensed', sans-serif;
    color: #000;
    -webkit-box-shadow: 10px 17px 43px 14px rgba(0,0,0,0.75);
    -moz-box-shadow: 10px 17px 43px 14px rgba(0,0,0,0.75);
    box-shadow: 10px 17px 43px 14px rgba(0,0,0,0.75);
}

#logInDialog table, #sendPasswordTable, #logInDialog div:not(:first-child){
    border: 0px;
    padding-left: 60px;
}

#logInDialog >#logInDialogHeader{
    background: #2c3f58;
    color: #fff;
    font-size: 22px;
}

#forgotPassword, #register-link{
    font-size: 12px;
}

#forgotPassword:hover, #register-link:hover{
    font-size: 14px;
    cursor: pointer;
}

#confirmLoginBtn, #cancelLoginBtn, #sendPasswordBtn{
    background: #2c3f58;
    color: #fff;
}

#logInEmail, #logInPassword, #sendPasswordInput{
    width: 160px;
    font-size: 18px;
    font-family: 'Open Sans Condensed', sans-serif;
}

#sendPasswordInput{
    margin-top: 7px;
}

#sendPasswordTable{
    display: none;
}

.hidden {
    display: none;
}

.v-align-middle {
    vertical-align: middle !important;
}

.bold {
    font-weight: bold;
}

.grayscale{
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
}

a{
    color: #411107;
}

a:visited{
    color: green;
}

/*LOGIN DIALOG END*/

#register-bar-mandatory {
    display: inline-block;
    vertical-align: top;
    margin-right: 20px;
}

#register-bar-sosial {
    display: inline-block;
    position: absolute;
    top: 20px;
    left: 300px;
    vertical-align: top;
}

#description {
    width: 431px;
    height: 100px;
}

#input-container {
    position:relative;
    padding:0;
    margin:0;
}

#input-container input {
    padding-right: 18px;
    width: 130px;
}

#input-img {
    position:absolute; bottom:2px; right:2px; width:16px; height:16px;
}

/*#searchBtn {
    font-size: 22px;
    font-family: 'Open Sans Condensed', sans-serif;
    display: inline-block;     
    height: 36px;
    background: #2c3f50;
    color: #fff;
}*/

.search-btn {
    height: 36px;
    width: 70px;
    background: #2c3f58;
    position: absolute;
    margin-left: -70px;
    margin-top: 0px;
    border: none;
    cursor: pointer;
}

.search-btn img {
    height: 24px;
    width: 24px;
}

#search-box {
    font-size: 22px;
    font-family: 'Open Sans Condensed', sans-serif;
    display: inline-block;
    width: 50%;
}

#search-wrapper {
    width: 100%;
}

#instafeed {
    width: 70%;
    margin: 0px 15% 0px 15%;
    height: auto;
    text-align: center;
    background: #411107;
    color: white;
    padding: 25px 0px;
    border-top: 1px solid black;
    display: inline-block;
}

#instafeed  img{
    border-radius: 100px;
    height: 120px;
    width: 120px;
    padding: 5px;
}

#instafeed img:hover {
    -webkit-filter: contrast(2);
    filter: contrast(2);
    height: 130px;
    width: 130px;
    padding: 0px;
}

#social-media {
    
}

#social-media span img {
    padding: 3px;
    height: 40px;
    width: 40px;
}

#social-media span img:hover {
    cursor: pointer;
    padding: 0px;
    height: 46px;
    width: 46px;
}

.infobox {
    height: auto;
    min-width: 200px;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    position: absolute;
    border-radius: 15px 15px 15px 0;
    padding: 9px; 
    z-index: 11;
}

/*used for checking window width to avoid measurement errors*/
.windowWidth{
    float: none;
}

@media (max-width: 880px){
    
    #content, #content-block {
        margin: 0 5% 0 5%;
    }
    
    #footer {
        padding: 5px;
        margin: 0;
        width: 88.8%;
        left: 5%;
    }
    
    #instafeed {
        margin: 0 5% 0 5%;
        width: auto;
    }
    
    #register-bar-sosial {
        position: relative;
        top: 0;
        left: 0;
    }
    
    #description {
        width: 300px;
    }
    
    #happenings-near-you-wrapper {
        width: 550px;
    }
}
@media 
only screen and (max-width: 760px),
(min-device-width: 320px) and (max-device-width: 1024px){
    
    /*used for checking window width to avoid measurement errors*/
    .windowWidth{
        float: left;
    }
    
    #content, #content-block {
        margin: 0;
        width: 100%;
        padding-top: 5em;
        padding-left: 0px;
        padding-right: 0px;
        padding-bottom: 20px;
    }
    
    #header {
        height: 5em;
    }
    
    #logo{
        width: 9em;
        height: 5em;
    }
    
    #footer {
        padding-top: 15px;
        width: auto;
        left: 0;
    }
    
    #instafeed {
        margin: 0;
        width: auto;
    }
    
    .content-box {
        width: 100%;
        margin-left: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    }
    
    .content-box header{
        font-size: 4em;
        width: 100%;
        margin-left: 0px;
        margin-right: 0px;
    }
    
    .content-box-icon{
        height: 1.5em;
        width: 1.5em;
    }
    
    #happenings-near-you-wrapper {
        width: 100%;
    }
    
    .search-btn {
        height: 140px;
        width: 200px;
        right: 0;
        top: 80px;
    }
    
    .search-btn img {
        height: 100px;
        width: 100px;
    }
    
    #search-wrapper{
        width: 100%;
        padding: 0;
        margin: 0;
        vertical-align: bottom;
    }
    
    #search-box{
        width: 100%;
        padding: 0px;
        font-size: 100px;
    }
    
    /* Force table to not be like tables anymore */
    .responsive-table, .responsive-table thead, .responsive-table th, .responsive-table td, .responsive-table tr { 
        display: block;
    }
    .responsive-table tbody{
        display: none;
    }
    
    .responsive-table tr:first-child{
        display: none;
    }
    
    /* Hide table headers (but not display: none;, for accessibility) */
    .responsive-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .responsive-table tr { border: 1px solid #ccc; }
    
    .responsive-table td { 
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding-left: 50%;
    }
    
    .responsive-table td:first-of-type { 
        font-size: 4em;
    }
    
    .responsive-table td:nth-of-type(2) { 
        font-size: 2em;
        background: #C0C2BD;
    }
    
    .responsive-table td:nth-of-type(3) { 
        font-size: 2em;
    }
    
    .responsive-table td:before {
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px; 
        white-space: nowrap;
    }
    
    /*START JQUERY AUTOCOMPLETE*/
    .ui-state-active,
    .ui-widget-content .ui-state-active,
    .ui-widget-header .ui-state-active, 
    .ui-autocomplete, .ui-autocomplete:hover, 
    .ui-menu-item, .ui-menu-item:hover,
    .ui-menu-item a, .ui-menu-item a:hover,
    .ui-widget-content .ui-state-focus,
    .ui-widget-header .ui-state-focus,
    .ui-widget-content .ui-state-hover,
    .ui-widget-header .ui-state-hover,
    .ui-menu .ui-menu-item a.ui-state-focus,
    .ui-menu .ui-menu-item a.ui-state-active,
    .ui-menu .ui-menu-item a{ 
        background: #ffffff none no-repeat; 
        padding:0;
        margin:0;
        display:block;
        border:0;
        border: 0px;
        border-collapse:collapse;
        font-size: 2.3em;
        font-family: 'Open Sans Condensed', sans-serif;
        width: 100%;
    }

    .ui-widget-content .ui-state-focus{
        background: #2c3e50;
        color: white;
        cursor: pointer;
    }

    /*END JQUERY AUTOCOMPLETE*/
    
    /*Label the data*/
    #new-bar-grid td:nth-of-type(1):before { content: "Name"; }
    #new-bar-grid td:nth-of-type(2):before { content: "Country"; }
    #new-bar-grid td:nth-of-type(3):before { content: "Postal No."; }
    #new-bar-grid td:nth-of-type(4):before { content: "City"; }
    #new-bar-grid td:nth-of-type(5):before { content: "Address"; }
    #new-bar-grid td:nth-of-type(6):before { content: "CC"; }
    #new-bar-grid td:nth-of-type(7):before { content: "Beer Price"; }
    #new-bar-grid td:nth-of-type(8):before { content: "Description"; }
    #new-bar-grid td:nth-of-type(9):before { content: "Age Limit"; }
    #new-bar-grid td:nth-of-type(10):before { content: "Owner"; }
    #new-bar-grid td:nth-of-type(11):before { content: "Status"; }
    #new-bar-grid td:nth-of-type(12):before { content: ""; }
    
    #new-user-grid td:nth-of-type(1):before { content: "Username"; }
    #new-user-grid td:nth-of-type(2):before { content: "Email"; }
    #new-user-grid td:nth-of-type(3):before { content: "First Name"; }
    #new-user-grid td:nth-of-type(4):before { content: "Last Name"; }
    #new-user-grid td:nth-of-type(5):before { content: "Password"; }
    #new-user-grid td:nth-of-type(6):before { content: "Account Type"; }
    #new-user-grid td:nth-of-type(12):before { content: ""; }
    
/*    #top-rated-bars td:nth-of-type(1):before { content: "Navn";}*/
/*    #top-rated-bars td:nth-of-type(2):before { content: "Sted"; }*/
/*    #top-rated-bars td:nth-of-type(3):before { content: "Rating"; }*/
    #top-rated-bars td:nth-of-type(4):before { content: "Aldersgrense"; }
    
/*    #top-budget-bars td:nth-of-type(1):before { content: "Navn"; }
    #top-budget-bars td:nth-of-type(2):before { content: "Sted"; }
    #top-budget-bars td:nth-of-type(3):before { content: "Rating"; }*/
    #top-budget-bars td:nth-of-type(4):before { content: "Inngang"; }
    #top-budget-bars td:nth-of-type(4):after { content: "kr"; }
    #top-budget-bars td:nth-of-type(5):before { content: "Ølpris (0,5 l)"; }
    #top-budget-bars td:nth-of-type(5):after { content: "kr"; }
    
/*    #happenings-near-you td:nth-of-type(1):before { content: "Hva"; }
    #happenings-near-you td:nth-of-type(2):before { content: "Hvor"; }
    #happenings-near-you td:nth-of-type(3):before { content: "Når"; }*/
    #happenings-near-you td:nth-of-type(4):before { content: "Pris"; }
    #happenings-near-you td:nth-of-type(4):after { content: "kr"; }
/*    #happenings-near-you td:nth-of-type(5):before { content: "Beskrivelse"; }*/
}